package com.tyut.service.Impl;

import com.tyut.mapper.ItemsMapper;
import com.tyut.pojo.Items;
import com.tyut.service.ItemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemsServiceImpl implements ItemsService {

    @Autowired
    private ItemsMapper itemsMapper;

    @Override
    public Integer insertItems(Items items) {
        int insert = itemsMapper.insert(items);
        return insert;
    }

    @Override
    public List<Items> findItemsIn(String status) {
        List<Items> itemsIn = itemsMapper.findItemsIn(status);
        return itemsIn;
    }

    @Override
    public List<Items> findItemsOut(String status) {
        List<Items> itemsOut = itemsMapper.findItemsOut(status);
        return itemsOut;
    }
}
